package src.main.java.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SysRoleUserMapper {

    List<Long> findSysUserRoleByUserId(Long userId);

    void doAssign(@Param("userId") Long userId,
                  @Param("roleId") Long roleId);

    void deleteByUserId(Long userId);
}
